﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceDog.Lib.Poker
{
    public partial class Card
    {
        public class Comparer : IComparer<Card>,IComparer
        {
            public int Compare(Card x, Card y)
            {
                return x.CompareTo(y);
            }

            public int Compare(object x, object y)
            {
                return this.Compare((Card)x, (Card)(y));
            }

            public static Comparer Default
            {
                get
                {
                    return new Comparer();
                }
            }
        }
    }
}
